#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    void saveQuestionEdit();
    void printQuestionEdit();
    void printQuestion();
    bool checkUserAnswer();
    int checkResult();
    void getAnswers();
    void checkLogin();
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private slots:
    void authentification();
    void logout();
    void open();
    void createTest();

    void openToEditTest();
    //mark function
    void editMark();
    void markGoBack();
    void saveMark();
    void checkDownMark();
    void checkUpMark();

    //create test function
    void beginCreateTest();
    void goBackEditTest();
    void prevQuestionEdit();
    void nextQuestionEdit();
    void changeType();
    void clearQuestionEdit();
    void saveTest();

    //studentTest
    void openStudentTest();
    void beginStudentTest();
    void backToHell();
    void nextQuestion();
    QString studentMark();
    

private:
    Ui::MainWindow *ui;
};

#endif // MAINWINDOW_H
